<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>medicinesPage</title>
</head>
<body>
    <tr th:each="medicine:${page.records}">
        <td th:text="${medicine.id}"></td>
        <td th:text="${medicine.name}"></td>
        <td th:text="${medicine.efficacy}"></td>
        <td th:text="${medicine.price}"></td>
        <td th:text="${medicine.num}"></td>
    </tr>
    <div>
        <a th:if="${page.current}1" th:href="@{/findAllPage(start=${page.current-1})}">上一页</a>
        &nbsp;&nbsp;总页数：<span th:text="${page.getPages()}"></span>&nbsp;
        &nbsp;&nbsp;当前页：<span th:text="${page.current}"></span>
        &nbsp;&nbsp;总记录数：<span th:text="${page.current+1}"></span>&nbsp;
        &nbsp;&nbsp;<a th:if="${page.current<page.getPages()>}" th:href="/findAllPage(start=${page.current+1})}">下一页</a>

    </div>
</body>
</html>